<% if local_assigns[:main_action] %>
  <h1 class="title-decorator"><%= component_name %></h1>
<% else %>
  <h2 class="title-decorator"><%= component_name %></h2>
<% end %>

<div class="accountability__status-container">
  <%= cell(
        "decidim/accountability/status",
        nil,
        url: root_path,
        title: t("decidim.accountability.results.home_header.global_status"),
        extra_classes: "accountability__status__parent",
        render_blank: true
      ) %>
  <% taxonomies_hierarchy.each do |taxonomy| %>
    <%= cell(
          "decidim/accountability/status",
          taxonomy,
          url: results_path(filter: { taxonomies_part_of_contains: taxonomy }),
          extra_classes: "accountability__status__parent",
          render_count: false,
          render_blank: true
        ) %>
  <% end %>
  <% if taxonomy.present? %>
    <div>
      <%= external_icon "media/images/breadcrumb_arrow.svg" %>
      <%= cell(
            "decidim/accountability/status",
            taxonomy,
            extra_classes: "accountability__status__child",
            url: results_path(filter: { taxonomies_part_of_contains: taxonomy }),
            render_blank: true
          ) %>
    </div>
  <% end %>
</div>

<%= render partial: "filters" %>
